package cn.kongwg.service;

import cn.kongwg.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author kongwg
 * @create 2021-02-19 17:31
 */
@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    @Value("kongwg")
    private String name;

    public void add() {
        System.out.println("userService add......");
        userDao.add();
        System.out.println(name);
    }
}
